package com.example.bookmanage.domain.book.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

@Getter
@Setter
public class BookVO {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long bookId;

    private String bookName;

    private String author;

    private String press;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate pressDate;

    private String price;

    private String stock;

}
